#include <QMessageBox>

#include "wnd_connection.h"
#include "wnd_login.h"
#include "ui_wnd_login.h"


WndLogin::WndLogin(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::WndLogin)
{
    ui->setupUi(this);
    ui->txtLogin->setFocus();
}

WndLogin::~WndLogin()
{
    delete ui;
}

void WndLogin::on_buttonBox_accepted()
{

}


void WndLogin::on_buttonBox_rejected()
{
    close();
}


void WndLogin::on_pushButton_clicked()
{
    WndConnection wndConnection;
    wndConnection.wndLogin = this;
    setVisible(false);
    wndConnection.exec();
}
